<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:69:"/var/www/html/CRM/public/../application/admin/view/prep/pregroup.html";i:1541069064;}*/ ?>


<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layer-更懂你的web弹窗解决方案</title>

  <style>
  html{background-color:#E3E3E3; font-size:14px; color:#000; font-family:'微软雅黑'}
  a,a:hover{ text-decoration:none;}
  pre{font-family:'微软雅黑'}
  .box{padding:20px; background-color:#fff; margin:50px 100px; border-radius:5px;}
  .box a{padding-right:15px;}
  #about_hide{display:none}
  .layer_text{background-color:#fff; padding:20px;}
  .layer_text p{margin-bottom: 10px; text-indent: 2em; line-height: 23px;}
  .button{display:inline-block; *display:inline; *zoom:1; line-height:30px; padding:0 20px; background-color:#56B4DC; color:#fff; font-size:14px; border-radius:3px; cursor:pointer; font-weight:normal;}
  .photos-demo img{width:200px;}
  </style>
    <style>
        .vsAdd{
            display: inline-block;
            width: 30px;
            height: 25px;
            background-color: #2a9cdd;
            line-height: 25px;
            color: #fff;
            cursor: pointer;
            text-align: center;
            padding-left: 15px;
        }
        .clear{
            clear: both;
        }
    </style>
  <script src="http://cdn.bootcss.com/jquery/1.12.3/jquery.min.js"></script>
    <script type="text/javascript" src="/admin/layer/layer.js"></script>
</head>
<body>
<div class="box" style="height:150px;">
    <div class="baBody">
        <form action="<?php echo url('admin/prep/group',['job_id'=>$result['job_id']]); ?>">
        <lable>请选择所分配的组:</lable><br><br>
        <select class="bbD" name="pro_sn" onclick="check(value)">
            <option value="1">全栈设计项目组</option>
            <option value="2">PHP开发项目组</option>
        </select><br><br>
        <select class="bbD" id="list" name="pro_id">
            <option value="">请选择分组</option>
        </select>
        <div class="bbD">
            <p class="bbDP">
                <input class="btn_ok btn_yes" type="submit" value="确定">
                <a class="vsAdd" href="" onclick="clo()">取消</a>
            </p>
        </div>
        </form>
    </div>
</div>

<script>
    function check(value) {
//        console.log(value);
        $.get("<?php echo url('admin/prep/ajax'); ?>",{'pro_sn':value},function (data) {
//            console.log(data.result);
            if (data.msg==200){
                var str = '';
                for (var i=0;i<data.result.length;i++){
                    str +=' <option value="'+data.result[i].pro_id+'">'+data.result[i].pro_name+'</option>';
                }
                 $('#list').html(str);
//                 var pro_id = data.result.pro_id;
//                $('#pro_id').html(pro_id);
            }
        },'json')
    }

    function clo() {
        layer.closeAll('iframe');
    }
</script>
</body>
</html>